# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=gnome-common

pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=3.12.0
pkgrel=1
pkgdesc="Common development macros for GNOME (mingw-w64)"
arch=('any')
groups=("${MINGW_PACKAGE_PREFIX}-gnome")
license=('GPL')
url="http://www.gnome.org"
source=(http://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-$pkgver.tar.xz
    Werror-format-remove.patch)
sha256sums=('18712bc2df6b2dd88a11b9f7f874096d1c0c6e7ebc9cfc0686ef963bd590e1d8'
            'c88704be75556c08a62645588ec70050f58def421f849c0519213c8709e36906')

prepare() {
  cd ${srcdir}/${_realname}-${pkgver}
  #patch -p1 -i ${srcdir}/Werror-format-remove.patch
}

build() {
  cd ${srcdir}/${_realname}-${pkgver}
  ./configure \
    --prefix=${MINGW_PREFIX} \
    --build=${MINGW_CHOST} \
    --host=${MINGW_CHOST}
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make DESTDIR="$pkgdir" install
}
